//package com.huatai.manage.controller;
//
//
//import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
//import com.huatai.common.api.R;
//import com.huatai.manage.aop.annotation.TrialIdIsExist;
//import com.huatai.manage.query.PageQuery;
//import com.huatai.manage.query.RemoveQuery;
//import com.huatai.manage.entity.TbRangeProfileEntity;
//import com.huatai.manage.service.TbRangeProfileService;
//import com.huatai.manage.utils.ComUtil;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//
//import javax.validation.Valid;
//
///**
// * <p>
// * 区域轮廓; 前端控制器
// * </p>
// *
// * @author luoxc
// * @since 2023-03-29
// */
//@RestController
//@RequestMapping("range")
//@Api(value = "区域轮廓管理", tags = "区域轮廓管理")
//public class TbRangeProfileController {
//
//	@Autowired
//	private TbRangeProfileService tbRangeProfileService;
//
//	@ApiOperationSupport(order = 1, includeParameters = {
//		"pageQuery.current",
//		"pageQuery.size",
//		"pageQuery.data.rangeName",
//	})
//	@PostMapping("pageList")
//	@ApiOperation(value = "分页查询所有数据", notes = "分页查询所有数据")
//	public R selectAll(@RequestBody PageQuery<TbRangeProfileEntity> pageQuery) {
//		return R.data(tbRangeProfileService.pageList(pageQuery));
//	}
//
//	@GetMapping("list")
//	@ApiOperation(value = "查询所有数据", notes = "查询所有数据")
//	public R list() {
//		return R.data(this.tbRangeProfileService.rangeList());
//	}
//
//	@ApiOperationSupport(order = 1, includeParameters = {
//		"pageQuery.current",
//		"pageQuery.size",
//		"pageQuery.data.trialId",
//	})
//	@PostMapping("pageByTrialId")
//	@ApiOperation(value = "根据试验id分页查询区域轮廓列表", notes = "根据试验id分页查询区域轮廓列表")
//	public R listByTrialId(@RequestBody PageQuery<TbRangeProfileEntity> pageQuery) {
//		return R.data(this.tbRangeProfileService.pageByTrialId(pageQuery));
//	}
//
//	@PostMapping("listByTrialId")
//	@ApiOperation(value = "根据试验id查询区域轮廓列表", notes = "根据试验id查询区域轮廓列表")
//	public R listByTrialId(@ApiParam(name = "trialId", value = "试验id", required = true) @RequestParam("trialId") String trialId) {
//		return R.data(this.tbRangeProfileService.listByTrialId(trialId));
//	}
//
//	@PostMapping("getByTrialId")
//	@ApiOperation(value = "根据试验id查询（壹瞰思）", notes = "根据试验id查询（壹瞰思）")
//	public R getByTrialId(@ApiParam(name = "trialId", value = "试验id", required = true) @RequestParam("trialId") String trialId) {
//		return R.data(this.tbRangeProfileService.getByTrialId(trialId));
//	}
//
//	@PostMapping("getByRangeId")
//	@ApiOperation(value = "通过区域id查询单条数据", notes = "通过区域id查询单条数据")
//	public R getOne(@ApiParam(name = "rangeId",value = "方案id", required = true) @RequestParam("rangeId") String rangeId) {
//		return R.data(this.tbRangeProfileService.getByRangeId(rangeId));
//	}
//
//
//	@TrialIdIsExist(remark = "校验trialId在数据库中是否存在")
//	@PostMapping("insert")
//	@ApiOperation(value = "新增数据", notes = "新增数据")
//	public R insert(@RequestBody @Valid TbRangeProfileEntity tbRangeProfileEntity) {
//		return R.status(this.tbRangeProfileService.insert(tbRangeProfileEntity.setRangeId(ComUtil.getUUID())));
//	}
//
//	@TrialIdIsExist(remark = "校验trialId在数据库中是否存在")
//	@PostMapping("update")
//	@ApiOperation(value = "修改数据", notes = "修改数据")
//	public R update(@RequestBody @Valid TbRangeProfileEntity tbRangeProfileEntity) {
//		return R.status(this.tbRangeProfileService.update(tbRangeProfileEntity));
//	}
//
//
//	@PostMapping("removes")
//	@ApiOperation(value = "删除数据", notes = "删除数据")
//	public R removes(@RequestBody RemoveQuery remove) {
//		return R.status(this.tbRangeProfileService.removes(remove.getIds()));
//	}
//
//}
